<%--
  Created by IntelliJ IDEA.
  User: jia
  Date: 2018/4/23
  Time: 11:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<c:set var="ctxStatic" value="${pageContext.request.contextPath}/static"/>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
    <!--可以省略版本号-->
    <script type="text/javascript" src='webjars/jquery/1.11.1/jquery.js'></script>
    <script type="text/javascript" src='webjars/sockjs-client/1.0.2/sockjs.min.js'></script>
    <script type="text/javascript" src="webjars/bootstrap/3.3.5/js/bootstrap.min.js"></script>
    <link rel='stylesheet' href='<%=basePath%>webjars/bootstrap/3.3.5/css/bootstrap.min.css'>
    <title>Title</title>

</head>
<body>

${ctx}${pageContext.request.contextPath}
</body>
</html>
